Skip to content

Conversation

@Oxyjun
Copy link
Contributor

@Oxyjun Oxyjun commented Aug 6, 2025

Summary

The two websocket examples (websocket-server and websocket-hibernation-server) contained manually-duplicated code blocks, one for TS, one for JS. This PR uses the TypeScriptExample component to avoid duplicating code block in the mdx file.

None of the code for the TS code block has been changed in any way.

  1. Deleted JS code block
  2. Used TypeScriptExample component on the TS code block, which automatically generates the JS counterpart.

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@Oxyjun Oxyjun self-assigned this Aug 6, 2025
@github-actions github-actions bot added product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ size/m labels Aug 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/durable-objects/ @elithrar, @vy-ton, @joshthoward, @oxyjun, @harshil1712, @mikenomitch, @cloudflare/pcx-technical-writing, @cloudflare/workers-runtime-1

@Oxyjun Oxyjun enabled auto-merge (squash) August 6, 2025 15:05
@Oxyjun Oxyjun merged commit 4ca758b into production Aug 6, 2025
11 checks passed
@Oxyjun Oxyjun deleted the jun/do/websocket/typescriptexample branch August 6, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants